package cn.bob.basic.constant;

/**
 * @author bob
 * @data 2022/10/19-13:20
 */

public class BaseConstant {
    public class VerifyCodeCons{
        //手机号 验证码redis的key格式
    public static final String PHONE_REDIS_KEY="register:smscode:%s";
    }

    //手机格式登录
    public class VerifySmsCodeCons{
        //手机号 验证码redis的key格式
    public static final String PHONE_REDIS_KEY="smscodeLogin:smscode:%s";
    }

    //微信二维码登录
    public class  VerifyWechat{
        public static final String PHONE_REDIS_APPID="wxd853562a0548a7d0";
        public static final String PHONE_REDIS_SECERT="4a5d5615f93f24bdba2ba8534642dbb6";
        public static final String PHONE_REDIS_TOKEN_URI="https://api.weixin.qq.com/sns/oauth2/access_token?appid=%s&secret=%s&code=%s&grant_type=authorization_code";
        //根据token获取的微信数据
        public static final String PHONE_REDIS_DATA="https://api.weixin.qq.com/sns/userinfo?access_token=%s&openid=%s";
        //绑定时的验证码
        public static final String PHONE_REDIS_VERIFYCODE="wechatbinder:smscode:%s";
    }
}
